package com.why.whyoj.judge.codesanbox.impl;

import com.why.whyoj.judge.codesanbox.CodeSandBox;
import com.why.whyoj.judge.codesanbox.model.ExecuteCodeRequest;
import com.why.whyoj.judge.codesanbox.model.ExecuteCodeResponse;
import com.why.whyoj.model.dto.questionsubmit.JudgeInfo;

import java.util.ArrayList;

public class ExampleCodeSandbox implements CodeSandBox {
    @Override
    public ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest) {
        ExecuteCodeResponse executeCodeResponse = new ExecuteCodeResponse();
        executeCodeResponse.setOutputList(new ArrayList<>());
        executeCodeResponse.setJudgeInfo(new JudgeInfo("yes", 100, 100));
        return executeCodeResponse;
    }
}
